package org.simpledownloader.test;

import java.io.*;
import java.net.*;

public class NetReader {

	/**
	 * @param args
	 * @throws MalformedURLException 
	 */
	public static void main(String[] args) throws MalformedURLException {
		String urlAddr = "ftp://iic.sc.sdu.edu.cn:2121/UserFiles/File/08-09-2-2006.doc";
		URL url = new URL(urlAddr);
		System.out.println(url.getHost());
		System.out.println(url.getProtocol());
		System.out.println(url.getDefaultPort());
	}

}
